﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using LayuiDemo.Models;


namespace LayuiDemo.tms.ViewModels.DriverVMs
{
    public partial class DriverSearcher : BaseSearcher
    {
        public List<ComboSelectListItem> AllDriverTruckss { get; set; }
        public List<Guid> SelectedDriverTrucksIDs { get; set; }
        public String DriverName { get; set; }

        protected override void InitVM()
        {
            AllDriverTruckss = DC.Set<Truck>().GetSelectListItems(Wtm, y => y.TruckName);
        }

    }
}
